package model;

import org.workplicity.entry.Entry;

public class User extends Entry
{
	private static final long serialVersionUID = 1L;
	protected String userName = "default", userPassword = null;
	protected int userID = 0;
	protected boolean isAdmin = false;
	
	/**
	 * Default no argument constructor.
	 */
	public User()
	{
	}

	/**
	 * Getter for userName
	 * 
	 * @return The userName String
	 */
	public String getUserName()
	{
		return userName;
	}

	/**
	 * Setter for userName
	 * 
	 * @param String containing the userName
	 */
	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	/**
	 * Getter for userPassword
	 * 
	 * @return The userPassword String
	 */
	public String getUserPassword()
	{
		return userPassword;
	}

	/**
	 * Setter for setUserPassword
	 * 
	 * @param String containing the setUserPassword
	 */
	public void setUserPassword(String userPassword)
	{
		this.userPassword = userPassword;
	}

	/**
	 * Getter for userID
	 * 
	 * @return The userID int
	 */
	public int getUserID()
	{
		return userID;
	}

	/**
	 * Setter for userID
	 * 
	 * @param Int containing the userID
	 */
	public void setUserID(int userID)
	{
		this.userID = userID;
	}

	/**
	 * Getter for isAdmin
	 * 
	 * @return The isAdmin boolean
	 */
	public boolean isAdmin()
	{
		return isAdmin;
	}

	/**
	 * Setter for isAdmin
	 * 
	 * @param Boolean containing the isAdmin
	 */
	public void setAdmin(boolean isAdmin)
	{
		this.isAdmin = isAdmin;
	}

	/**
	 * Getter for serialVersionUID
	 * 
	 * @return The serialVersionUID long
	 */
	public static long getSerialversionuid()
	{
		return serialVersionUID;
	}
}
